<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
if (window.testRunner)
    testRunner.keepWebHistory();
</script>
<style>
div { text-decoration-color: red; }
a:visited { text-decoration-color: inherit }
a, a:hover { color: green; text-decoration-color: green }
</style>
<div>
    <a id="anchor" href="">Should be green (including underline) when hovered</a>
</div>
<script>
    runAfterLayoutAndPaint(function(){
        if (window.eventSender);
            eventSender.mouseMoveTo(anchor.offsetLeft + 1, anchor.offsetTop + 1);
    }, true);
</script>
